<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<!-- Page Breadcrumb -->
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('user/index')}">会员管理</a>
				</li>
				<li class="active">会员详情</li>
			</ul>
		</div>
		<!-- /Page Breadcrumb -->
		
		<!-- Page Body -->
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="tabbable">
						<ul class="nav nav-tabs" id="myTab">
							<li class="tab-red">
								<a href="{:U('user/detail',['id'=>$id])}" aria-expanded="true">
                                                		基本信息
                                                </a>
							</li>

							<li class="tab-red">
								<a  href="{:U('user/invite',['id'=>$id])}" aria-expanded="false">
                                                	推广会员
                                                </a>
							</li>

							<li class="active">
								<a href="{:U('user/account',['id'=>$id])}" aria-expanded="false">
                                            	账户日志
                                            </a>
							</li>

						</ul>

						<div class="tab-content">

							<table class="table table-bordered table-striped">
                                    <thead>
                                        <tr>
                                            <th>时间</th>
                                            <th>金额(￥)</th>
                                            <th>类型</th>
                                            <th>描述</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	<notempty name="result">
                                    	<volist name="result" id="val">
                                        <tr>
                                            <td>{$val.created_at}</td>
                                            <td>
                                            	<span class="badge badge-blueberry">
													<eq name="val['source']" value="0">-<else />+</eq>{$val.amount}
												</span>
                                            </td>
                                            <td>
												{:userAccountType($val['type_id'])}
											<eq name="val['source']" value="0">
												支出
											<else />
												收入
											</eq>
                                            </td>
                                            <td>{$val.remark}</td>
                                        </tr>
                                        </volist>
                                        <else/>
                                        <tr>
                                        	<td colspan="4" align="center">没有数据</td>
                                        </tr>
                                       </notempty>
                                    </tbody>
                                </table>
                                <div class="row DTTTFooter">
								<div class="col-sm-6">
									<div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">

									</div>
								</div>
								<div class="col-sm-6">
									<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
										{$page}
									</div>
								</div>
							</div>
							</div>
					</div>
					

				</div>
			</div>

		</div>
		<!-- /Page Body -->
	</div>

</block>